package com.trafficsys.modules.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 驾驶证类
 */
@Data//lombok生成get set方法
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class DriveCard {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String driveCardId;//驾驶证号
    private String cardId;//驾驶员身份证号
    private String nationality;//驾驶员国籍
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createDate;//领证日期
    private String clazz;//准驾车型
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp validPeriod;//有效日期
    private String department;//签发部门
    private Integer score;//当前分数 初始为12分 score<=0则停用驾驶证
    private String state;//驾驶证状态
}
